package main

import "fmt"

type Public struct {
	name string
	age int
	sex byte
}

type Child struct {
	Public
	int
	byte
}

func main()  {
	//当没有变量名称时直接写数据类型
	a := Child{Public:Public{name:"AAA", age:20, sex:'m'}, int:16, byte:'a'}
	fmt.Printf(" a = %v\n", a)
}
